using System.Collections.Generic;
using UnityEngine;

public class MoneyPanelController : MonoBehaviour
{
	public static MoneyPanelController instance;

	public List<MoneyPanel> moneyPanelList = new List<MoneyPanel>();

	private void Awake()
	{
		instance = this;
	}

	public void AddMoneyPanel(MoneyPanel moneyPanel)
	{
		moneyPanelList.Add(moneyPanel);
		moneyPanel.UpdateLabels();
	}

	public void UpdateLabels()
	{
		foreach (MoneyPanel moneyPanel in moneyPanelList)
		{
			moneyPanel.UpdateLabels();
		}
	}
}
